package util

//AnyEmpty return ture if any args is empty
func AnyEmpty(args ...string) bool {
	if len(args) == 0 {
		return true
	}
	for i := range args {
		if args[i] == "" {
			return true
		}
	}
	return false
}

//AnyNil return ture if any args is nil
func AnyNil(args ...interface{}) bool {
	if len(args) == 0 {
		return true
	}
	for i := range args {
		if args[i] == nil {
			return true
		}
	}
	return false
}
